<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>thacher update</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" th:href="@{/css/layui.css}" media="all">
    <script th:src="@{/js/jquery-3.5.1.min.js}"></script>
    <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<body>
<div class="layui-container">
    <form class="layui-form" id="scores-form">
        <div class="layui-form-item">
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="text" name="id" id="id" autocomplete="off" lay-verify="id"
                           class="layui-input layui-hide">
                </div>
            </div>
            <div class="layui-inline">
                <div class="layui-inline">
                    <label class="layui-form-label">出勤</label>
                    <div class="layui-input-inline">
                        <input type="text" name="attendance" id="attendance" autocomplete="off" lay-verify="attendance"
                               placeholder="请输入占比"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">课堂表现</label>
                    <div class="layui-input-inline">
                        <input type="text" name="classPerformance" id="classPerformance" autocomplete="off"
                               lay-verify="classPerformance"
                               placeholder="请输入占比"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">作业</label>
                    <div class="layui-input-inline">
                        <input type="text" name="task" id="task" autocomplete="off" lay-verify="task"
                               placeholder="请输入占比"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">实验</label>
                    <div class="layui-input-inline">
                        <input type="text" name="experiment" id="experiment" autocomplete="off" lay-verify="experiment"
                               placeholder="请输入占比"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">考试</label>
                    <div class="layui-input-inline">
                        <input type="text" name="exam" id="exam" autocomplete="off" lay-verify="exam"
                               placeholder="请输入占比"
                               class="layui-input">
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-inline">
                    <input type="text" name="version" id="version" autocomplete="off" lay-verify="version"
                           class="layui-input layui-hide">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <button type="submit" class="layui-btn" lay-submit lay-filter="demo1" id="sub-btn">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </div>
    </form>
    <div class="layui-col-lg12">
        <table class="layui-table" id="courseStudent" lay-filter="courseStudent">
        </table>
    </div>
    <script type="text/html" id="barDemo">
        <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="edit">
            <i class="layui-icon layui-icon-edit"></i>
            编辑
        </a>
    </script>
</div>
</body>
<script th:src="@{/layui.all.js}"></script>
<script th:src="@{/js/teacher/setScores.js}"></script>
</html>